package com.threeti.mecool.mobile.interfaces;

import java.io.Serializable;

public class PageInfo implements Serializable {
  private long totalElement;
  private boolean hasNext;
  
  public PageInfo(long totalElement, boolean hasNext) {
    super();
    this.totalElement = totalElement;
    this.hasNext = hasNext;
  }
  
  public static PageInfo page(long totalElement, boolean hasNext) {
    return new PageInfo(totalElement, hasNext);
  }
  
  public long getTotalElement() {
    return totalElement;
  }
  public void setTotalElement(long totalElement) {
    this.totalElement = totalElement;
  }

  public boolean isHasNext() {
    return hasNext;
  }

  public void setHasNext(boolean hasNext) {
    this.hasNext = hasNext;
  }
  
  
}
